package main;

import dao.cuentasDAO;
import beanCuenta.Account;
import beanCuenta.AccountDetail;

public class mainCuenta {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Account account = new Account();
		account.setBalance(33.33);

		cuentasDAO.getInstance().guardarCuenta(account);

		AccountDetail accountDetail= new AccountDetail();
		accountDetail.setAccountDetailPk(accountDetail.getAccountDetailPk());
		accountDetail.setIdDetail(1L);
		accountDetail.setIdAccount(account.getIdAccount());

		cuentasDAO.getInstance().guardarCuentaDetail(accountDetail);
		
		Account ac1 = cuentasDAO.getInstance().traerCuenta();
		System.out.println(ac1.getAccountDetails().get(0).getAccountDetailPk().getIdDetail());
	}

}
